package com.chey.dao;

import com.chey.domain.Permission;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface PermissionDao {


    @Results(id = "permissionMap",value = {
            @Result(column = "PERMISSION_NAME",property = "name")})
    @Select("select * from USER_PERMISSIONS_VIEW where USER_ID=#{uid}")
    List<Permission> selectByUid(Integer uid);
}
